Skip to main content

MouseEventArgs

The MouseEventArgs class represents mouse event arguments, providing details about the mouse state during an event.

Properties

NameDescription
ClientYThe vertical coordinate of the mouse relative to the client area.
OffsetYThe vertical coordinate of the mouse relative to the event target.
ButtonsSpecifies the currently pressed mouse buttons.
LayerYThe vertical coordinate of the mouse relative to the nearest positioned ancestor element.
MetaKeyIndicates whether the "Meta" key (Windows key or Command key) was pressed during the event.
LayerXThe horizontal coordinate of the mouse relative to the nearest positioned ancestor element.
CtrlKeyIndicates whether the "Ctrl" key was pressed during the event.
MovementXThe horizontal movement of the mouse since the last event.
PageXThe horizontal coordinate of the mouse relative to the whole document.
ResponseParametersThe response parameters associated with the event.
ScreenXThe horizontal coordinate of the mouse relative to the screen.
OffsetXThe horizontal coordinate of the mouse relative to the event target.
ShiftKeyIndicates whether the "Shift" key was pressed during the event.
MovementYThe vertical movement of the mouse since the last event.
YThe vertical coordinate of the mouse relative to the event target.
AltKeyIndicates whether the "Alt" key was pressed during the event.
ButtonSpecifies which mouse button was pressed.
ScreenYThe vertical coordinate of the mouse relative to the screen.
PageYThe vertical coordinate of the mouse relative to the whole document.
ClientXThe horizontal coordinate of the mouse relative to the client area.
XThe horizontal coordinate of the mouse relative to the event target.

Constructors

NameDescription
MouseEventArgs()Initializes a new instance of the MouseEventArgs class.